package adv1;

/**
 * @author oldliu
 * @since 1.0
 */
public class SystemTest {
    public static void main(String[] args) {
        System.out.println();
        System.out.println(System.getenv());
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        System.out.println(System.getProperties());
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        System.out.println(System.getProperty("java.io.tmpdir"));
        long time=System.currentTimeMillis();
        System.out.println(time);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        long kaishi=System.nanoTime();
        int i=1;
        //System.exit(0);//结束这个程序
        while (i++<100);
        long jieshu=System.nanoTime();
        long shijian=jieshu-kaishi;
        System.out.println("1递增到100，花费了多少时间："+shijian+"纳秒");
    }
}
